<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>列表</title>
	<link rel="stylesheet" type="text/less" href="__TEMPLATE__/style/main.less" />
	<link rel="stylesheet" href="__TEMPLATE__/style/bootstrap.min.css" />
	<link rel="stylesheet" href="__TEMPLATE__/style/font-awesome.min.css">
	<script type="text/javascript" src="__TEMPLATE__/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/main.js"></script>	
</head>

<body>
<!-- 头部开始 -->
<include file="__TEMPLATE__/head.html"/>
<!-- 头部结束 -->
<!-- 内页位置开始 -->
<div id="postion">
	<a href="">首页</a>/
	<a href="">所有配件</a>/
	<a href="">保护套与贴膜</a>/
</div>
<!-- 内页位置结束 -->
<!-- 产品可选菜单开始 -->
<div id="chexmenu">
	<h1>保护套与贴膜</h1>
	<foreach from='$typeAttr' key="$k" value='$v'>
		<div class="category">
			<?php 
				$tmp = $filter;
				$tmp[$k] = 0;
				// p($tmp);
				
			?>
			<span>{$v.taname}:</span>
			<foreach from="$v['tavalue']" key='$key' value="$value">
				<?php 
					$tmp[$k] = $key;
				?>
				<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'s'=>implode('_', $tmp))}" <if value='$filter[$k] eq $key'>class='cur'</if>>{$value}</a>
				<span>|</span>
			</foreach>
		</div>
	</foreach>
	<div class="chexbox">
		<div class="left">
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'s'=>implode('_', $filter))}" style="color: #FF4A00;">最新</a>
			<span>|</span>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'s'=>implode('_', $filter))}">价格从高到低</a>
			<span>|</span>
			<a href="">价格从低到高</a>
			<span>|</span>
			<a href="">关注度</a>
		</div>
		<div class="right">
		<form action="">
			<input type="checkbox" />仅显示特惠商品
			<input type="checkbox" />仅显示有货商品
		</form>
			
		</div>
	</div>
</div>
<!-- 产品可选菜单结束 -->
<!-- 产品列表开始 -->
<div id="goods_list">
	<ul>
		<foreach from="$listData" value="$v">
			<a href="{|U:'Goods/index',array('gid'=>$v['gid'])}" target="_blank">
				<li>
					<div class="box-over">
					<p class="img"><img src="__ROOT__/{$v.pic}" alt="" width="220" height="220" /></p>
					<p class="title"><a href="{|U:'Goods/index',array('gid'=>$v['gid'])}" target="_blank">{$v.gname}</a></p>
					<p class="price">{$v.shopprice}元</p>
					<p class="star"><span></span>{$v.click}人评价</p>
					<p class="list_cart">
						<a class="cart_one" href="{|U:'Cart/index',array('gid'=>$v['gid'])}"><i class="fa fa-plus"></i> 购物车</a>
						<a class="store" href="{|U:'Stor/index',array('gid'=>$v['gid'])}"><i class="fa fa-heart"></i> 收藏</a>
					</p>	
					</div>
				</li>
			</a>
		</foreach>
	</ul>
</div>
<div id="page">
	{$page}
</div>
<!-- 产品列表结束 -->
<!-- // 服务样式开始 -->
<include file="__TEMPLATE__/footer.html"/>
<!-- // 服务样式结束 -->
</body>
</html>